<style type="text/css">
	body{margin:0;}
	html,body{height:100%; width:100%; overflow:hidden;}
	footer{display:none;}
	.return{position:absolute; bottom:0; width:100%; background:rgba(0,0,0,0.6); z-index:1000;}
	.return a{background:#fff url(__PUBLIC__/Style/Home/House/images/icon.png) 0 0 no-repeat; width:30px; height:30px; display:block; margin:5px; border-radius:50%;}
</style>

<div id="container"></div>
<div class="scene-title"><h4>{$house.name}{$houseScene.houseType.name}</h4></div>
<div class="scene-list" id="scene-list">
	<ul>
		<tag:houseScene id="vo">
			<li><a href="{$vo.url}" class="{$houseScene['id']==$vo['id']?'active':''}">{$vo.name}</a></li>
		</tag:houseScene>
	</ul>
  <a class="toggle-scene" id="toggle-scene">切换场景</a>
</div>
<div class="return">
	<a onclick="javascript:history.go(-1)"></a>
</div>


<script type="text/javascript">
	// hide URL field on the iPhone/iPod touch
	function hideUrlBar() {
		document.getElementsByTagName("body")[0].style.marginTop="1px";
		window.scrollTo(0, 1);
	}
	window.addEventListener("load", hideUrlBar);
	window.addEventListener("resize", hideUrlBar);
	window.addEventListener("orientationchange", hideUrlBar);
	
	//toggle scene
	var toggleScene = document.getElementById( "toggle-scene" ),
	     sceneList = document.getElementById( "scene-list" ).children[0];
	toggleScene.onclick = function () {
		var display = window.getComputedStyle( sceneList, false ).display;
		display == "block" ? (sceneList.style.display = "none") : (sceneList.style.display = "block");
	}
</script>

<script src="__PUBLIC__/Style/Common/js/player.js"></script>
<script type="text/javascript">
	var container = document.getElementById("container"),
		documentWidth = document.documentElement.clientWidth,
		documentHeight = document.documentElement.clientHeight;
	container.style.width = documentWidth + "px";
	container.style.height = documentHeight + "px";
	// create the panorama player with the container
	pano=new pano2vrPlayer("container");
	pano.readConfigUrl("{$configUrl}");
	// hide the URL bar on the iPhone
	hideUrlBar();
</script>
